/*
 * @Author: xiaosihan 
 * @Date: 2021-05-05 12:35:30 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2021-11-07 13:11:33
 */

import React from "react";
import Plane from "../..//Plane/Plane";
import Group3D from "../../Group3D/Group3D";
import { MeshProps } from "../../Mesh/Mesh";
import lightBafflePNG from "./lightBaffle.png";

interface LightBafflesProps extends MeshProps {

}

interface State { }

export default class LightBaffles extends Group3D<LightBafflesProps, State> {
    constructor(props: LightBafflesProps) {
        super(props);
    }

    render() {

        return (
            <>
                <Plane
                    rotation={{ x: Math.PI / -9, y: 0, z: Math.PI }}
                    position={{ x: 0, y: -1.4, z: 0.65 }}
                    map={lightBafflePNG}
                    clipping={false} // 不使用裁剪
                    alphaTest={0.7}
                />
                <Plane
                    rotation={{ x: Math.PI / 9, y: 0, z: Math.PI }}
                    position={{ x: 0, y: -1.4, z: -0.65 }}
                    map={lightBafflePNG}
                    clipping={false} // 不使用裁剪
                    alphaTest={0.7}
                />
                <Group3D
                    rotation={{ x: 0, y: Math.PI / 2, z: Math.PI }}
                    position={{ x: -0.65, y: -1.4, z: 0 }}
                >
                    <Plane
                        rotation={{ x: Math.PI / -9, y: 0, z: 0 }}
                        map={lightBafflePNG}
                        clipping={false} // 不使用裁剪
                        alphaTest={0.7}
                    />
                </Group3D>

                <Group3D
                    rotation={{ x: 0, y: Math.PI / 2, z: Math.PI }}
                    position={{ x: 0.65, y: -1.4, z: 0 }}
                >
                    <Plane
                        rotation={{ x: Math.PI / 9, y: 0, z: 0 }}
                        map={lightBafflePNG}
                        clipping={false} // 不使用裁剪
                        alphaTest={0.7}
                    />
                </Group3D>
            </>
        );
    }
}